<template>
	<view class="container">
		<web-view :webview-styles="webviewStyles" :src="uri"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3660'
					}
				},
				uri: ''
			};
		},
		
		onLoad(options) {
			this.uri = options.uri || ''
			
			if(options.title){
				uni.setNavigationBarTitle({
					title: options.title
				})
			}
		}
	}
</script>

<style lang="less" scoped>

</style>
